﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.ServiceBus.Messaging;

namespace Ringo.BusQ.ServiceBus.Messaging
{
    public interface IMessageReceiver<TMessage>
    {
        TMessage Receive();
        TMessage Receive(TimeSpan pollingTime);
        TMessage Receive(long longSeuence);
        bool IsClosed { get; }
        void Close();
    }
}
